Name:           mongo
Version:        r6.0.11 
Release:        1%{?dist}
Summary:        mongod 6.0.11

License:        SSPL
URL:            https://github.com/mongodb/mongo
Source0:        https://github.com/mongodb/mongo/archive/refs/tags/r6.0.11.tar.gz

BuildRequires:  info
Requires:	    info

%description


echo ============================================================================
free -h
echo ============================================================================
exit 1
%prep

echo ============================================================================
free -h
echo ============================================================================
exit 1
%autosetup

echo ============================================================================
free -h
echo ============================================================================
exit 1

%build
echo ============================================================================
free -h
echo ============================================================================
exit 1

pip3 install -r etc/pip/compile-requirements.txt --trusted-host pypi.python.org  -i https://pypi.tuna.tsinghua.edu.cn/simple/
python3 buildscripts/scons.py install-mongod MONGO_VERSION=6.0.11 --disable-warnings-as-errors


%install
mkdir -p %{buildroot}/usr/local/mongo/
cp -a mongo-r6.0.11/build/install/* %{buildroot}/usr/local/mongo/

%pre

%post
ln -s /usr/local/mongo/bin/mongod /usr/bin/mongod
%preun

%postun

%files
/usr/local/mongo/*


